package com.yao.sys.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.yao.common.resp.ApiResponse;
import com.yao.sys.entity.dto.RoleMenuRelDto;
import com.yao.sys.service.RoleMenuRelService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * 角色菜单关系表 Controller
 *
 * @author autoCode
 * @version 1.0.0-SNAPSHOT
 * @date 2020-04-09
 */
@Api(tags = "角色菜单关系管理")
@RestController
@RequestMapping(value = "/roleMenuRel")
@Slf4j
public class RoleMenuRelController {

    @Autowired
    private RoleMenuRelService roleMenuRelService;

    @ApiOperation(value = "新增角色菜单关系", notes = "新增角色菜单关系")
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public ApiResponse<Object> add(@RequestBody RoleMenuRelDto model) {
        return ApiResponse.success();
    }

    @ApiOperation(value = "修改角色菜单关系", notes = "修改角色菜单关系")
    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public ApiResponse<Object> update(@RequestBody RoleMenuRelDto model) {
        return ApiResponse.success();
    }

    @ApiOperation(value = "删除角色菜单关系", notes = "逻辑删除角色菜单关系")
    @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET)
    public ApiResponse<Object> deleteById(@PathVariable("id") Integer id) {
        return ApiResponse.success();
    }

}